//
//  PVDDetailChecklistHeaderCell.swift
//  GreenDeal
//
//  Created by Moennig Q on 11/2/2023.
//

import UIKit
import SnapKit
class PVDDetailChecklistHeaderCell: UITableViewCell {
    let sectionTitleLabel = ContentLabel(R.font.interRegular(size: 12),hexStr: "#292D3299")
    
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }
    
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        setUpviews()
    }
    
    func setUpviews() {
        self.backgroundColor = UIColor(hexStr: Constant.TransparentColorHexStr)
        self.contentView.backgroundColor = UIColor(hexStr: Constant.TransparentColorHexStr)
        self.selectionStyle = .none
        //section Title
        self.contentView.addSubview(sectionTitleLabel)
        sectionTitleLabel.snp.makeConstraints { make in
            make.top.equalTo(Constant.AllOutMargin)
            make.left.equalTo(24)
            make.width.height.greaterThanOrEqualTo(0)
            make.bottom.equalTo(-Constant.AllOutMargin / 2)
        }
    }
    func setData(_ checklistModel: PVDChecklistModel){
        sectionTitleLabel.text = checklistModel.title
    }
}
